# -*- coding: utf-8 -*-
# @Time    : 2024/8/31 下午3:18
# @Author  : wb
# @Email   : wb@163.com
# @File    : client_add_care_page.py
# @Software: PyCharm

from time import sleep
from pages.wb_base_page import BasePage
from selenium.webdriver.common.by import By

class ClientAddCarePag(BasePage):
    url = '/crm'
    # 定位器
    '''获取关怀主题输入框元素'''
    care_subject_locator = (By.CSS_SELECTOR,'#name')
    '''获取保存按钮元素'''
    save_locator = (By.CSS_SELECTOR,'body > div.container > div.row > div > form > table > tfoot > tr > td:nth-child(2) > input:nth-child(1)')
    # 操作
    def add_input_care_subject(self,care_subject):
        # 输入关怀主题
        self.driver.find_element(*self.care_subject_locator).send_keys(care_subject)
    def add_care_save_btn(self):
        # 点击保存
        self.driver.find_element(*self.save_locator).click()